<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LTE-UNB: PhysicalLayer/PhysicalLayer.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LTE-UNB
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">PhysicalLayer/PhysicalLayer.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_physical_layer_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef _PhysicalLayer_h_</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _PhysicalLayer_h_</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;itpp/itbase.h&gt;</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="_subframe_8h.html">Subframe.h</a>&quot;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="keyword">using namespace </span>std;
<a name="l00026"></a>00026 <span class="keyword">using namespace </span>itpp;
<a name="l00027"></a>00027 
<a name="l00032"></a>00032 <span class="keyword">namespace </span>PhysicalLayer
<a name="l00033"></a>00033 {
<a name="l00034"></a>00034 
<a name="l00039"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html">00039</a> <span class="keyword">class </span><a class="code" href="class_physical_layer_1_1_physical_layer.html">PhysicalLayer</a>
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041    <span class="keyword">public</span>:
<a name="l00042"></a>00042 
<a name="l00047"></a>00047       <a class="code" href="class_physical_layer_1_1_physical_layer.html">PhysicalLayer</a>();
<a name="l00048"></a>00048       
<a name="l00055"></a>00055       <a class="code" href="class_physical_layer_1_1_physical_layer.html">PhysicalLayer</a>( <span class="keyword">const</span> vec PRBFrequencies, <span class="keyword">const</span> vec SCFrequencies );
<a name="l00056"></a>00056       
<a name="l00061"></a>00061       <span class="keyword">virtual</span> ~<a class="code" href="class_physical_layer_1_1_physical_layer.html">PhysicalLayer</a>();
<a name="l00062"></a>00062 
<a name="l00067"></a>00067       <span class="keywordtype">void</span> initialize( <span class="keyword">const</span> vec PRBFrequencies );
<a name="l00068"></a>00068       
<a name="l00073"></a>00073       <a class="code" href="class_physical_layer_1_1_subframe.html">Subframe</a> getSubframeAsObject();
<a name="l00074"></a>00074       
<a name="l00079"></a>00079       <span class="keywordtype">int</span> getNumberPRBsPerSlot();
<a name="l00080"></a>00080       
<a name="l00085"></a>00085       <span class="keywordtype">int</span> getNumberSlots();
<a name="l00086"></a>00086       
<a name="l00091"></a>00091       <a class="code" href="class_physical_layer_1_1_physical_resource_block.html">PhysicalResourceBlock</a>* getPRB( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, 
<a name="l00092"></a>00092                                      <span class="keyword">const</span> <span class="keywordtype">int</span> prb );
<a name="l00093"></a>00093       
<a name="l00098"></a>00098       <span class="keywordtype">void</span> setUser( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, 
<a name="l00099"></a>00099                     <span class="keyword">const</span> <span class="keywordtype">int</span> prb, 
<a name="l00100"></a>00100                     <span class="keyword">const</span> <span class="keywordtype">int</span> userId );
<a name="l00101"></a>00101       
<a name="l00106"></a>00106       <span class="keywordtype">int</span> getUserId( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, 
<a name="l00107"></a>00107                      <span class="keyword">const</span> <span class="keywordtype">int</span> prb );
<a name="l00108"></a>00108       
<a name="l00113"></a>00113       <span class="keywordtype">double</span> getFrequency( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, 
<a name="l00114"></a>00114                            <span class="keyword">const</span> <span class="keywordtype">int</span> prb );
<a name="l00115"></a>00115       
<a name="l00120"></a>00120       <span class="keywordtype">int</span> getRawBits( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, 
<a name="l00121"></a>00121                          <span class="keyword">const</span> <span class="keywordtype">int</span> prb );
<a name="l00126"></a>00126       <span class="keywordtype">double</span> getEffectiveBits( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, 
<a name="l00127"></a>00127                                <span class="keyword">const</span> <span class="keywordtype">int</span> prb );
<a name="l00128"></a>00128       
<a name="l00133"></a>00133       <span class="keywordtype">void</span> clearUsers();
<a name="l00134"></a>00134       
<a name="l00139"></a>00139       <span class="keywordtype">int</span> getNumberFrequencies();
<a name="l00140"></a>00140       
<a name="l00145"></a>00145       <span class="keywordtype">int</span> getNumberSCFrequencies();
<a name="l00146"></a>00146       
<a name="l00151"></a>00151       <span class="keywordtype">double</span> getFrequency( <span class="keywordtype">int</span> index );
<a name="l00152"></a>00152       
<a name="l00157"></a>00157       <span class="keywordtype">double</span> getSCFrequency( <span class="keywordtype">int</span> index );
<a name="l00158"></a>00158       
<a name="l00163"></a>00163       vec getFrequencies();
<a name="l00164"></a>00164       
<a name="l00169"></a>00169       vec getSCFrequencies();
<a name="l00170"></a>00170       
<a name="l00175"></a>00175       <a class="code" href="class_physical_layer_1_1_subframe.html">Subframe</a>* getSubframe();
<a name="l00176"></a>00176                   
<a name="l00177"></a>00177    <span class="keyword">protected</span>:
<a name="l00178"></a>00178       
<a name="l00183"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a418206d1b84e01acb153cbaec0434394">00183</a>       <a class="code" href="class_physical_layer_1_1_subframe.html">Subframe</a>* <a class="code" href="class_physical_layer_1_1_physical_layer.html#a418206d1b84e01acb153cbaec0434394">subframe_</a>;
<a name="l00184"></a>00184       
<a name="l00189"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#adbabfb3384ed75114edbfeab9553e1f7">00189</a>       vec <a class="code" href="class_physical_layer_1_1_physical_layer.html#adbabfb3384ed75114edbfeab9553e1f7">frequencies_</a>;
<a name="l00190"></a>00190       
<a name="l00195"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a1b8b575807479aadd75fe17129b313c4">00195</a>       vec <a class="code" href="class_physical_layer_1_1_physical_layer.html#a1b8b575807479aadd75fe17129b313c4">SCfrequencies_</a>;
<a name="l00196"></a>00196    
<a name="l00197"></a>00197    
<a name="l00198"></a>00198    <span class="keyword">private</span>:
<a name="l00199"></a>00199    
<a name="l00200"></a>00200 
<a name="l00201"></a>00201 };
<a name="l00202"></a>00202 
<a name="l00203"></a>00203 };
<a name="l00204"></a>00204 
<a name="l00205"></a>00205 <span class="keyword">inline</span>
<a name="l00206"></a>00206 <a class="code" href="class_physical_layer_1_1_subframe.html">PhysicalLayer::Subframe</a>
<a name="l00207"></a>00207 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a8a400a75e7cf8529d3b874d75d4cb5bb">PhysicalLayer::</a>
<a name="l00208"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a8a400a75e7cf8529d3b874d75d4cb5bb">00208</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a8a400a75e7cf8529d3b874d75d4cb5bb">PhysicalLayer::getSubframeAsObject</a>()
<a name="l00209"></a>00209 {
<a name="l00210"></a>00210    <span class="keywordflow">return</span> *subframe_;
<a name="l00211"></a>00211 };
<a name="l00212"></a>00212 
<a name="l00213"></a>00213 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00214"></a>00214 
<a name="l00215"></a>00215 <span class="keyword">inline</span>
<a name="l00216"></a>00216 <span class="keywordtype">int</span>
<a name="l00217"></a>00217 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a3cf4e5a3a1cd9f9750d3760fd1ebf8a2">PhysicalLayer::</a>
<a name="l00218"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a3cf4e5a3a1cd9f9750d3760fd1ebf8a2">00218</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a3cf4e5a3a1cd9f9750d3760fd1ebf8a2">PhysicalLayer::getNumberPRBsPerSlot</a>()
<a name="l00219"></a>00219 {
<a name="l00220"></a>00220    <span class="keywordflow">return</span> ( subframe_-&gt;getSlot( 0 ) )-&gt;getNumberPRBs();
<a name="l00221"></a>00221 };
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00224"></a>00224 
<a name="l00225"></a>00225 <span class="keyword">inline</span>
<a name="l00226"></a>00226 <span class="keywordtype">int</span>
<a name="l00227"></a>00227 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a01961a5ab73d809d81082eb6266c0c9e">PhysicalLayer::</a>
<a name="l00228"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a01961a5ab73d809d81082eb6266c0c9e">00228</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a01961a5ab73d809d81082eb6266c0c9e">PhysicalLayer::getNumberSlots</a>()
<a name="l00229"></a>00229 {
<a name="l00230"></a>00230    <span class="keywordflow">return</span> subframe_-&gt;getNumberSlots();
<a name="l00231"></a>00231 };
<a name="l00232"></a>00232 
<a name="l00233"></a>00233 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00234"></a>00234 
<a name="l00235"></a>00235 <span class="keyword">inline</span>
<a name="l00236"></a>00236 <a class="code" href="class_physical_layer_1_1_physical_resource_block.html">PhysicalLayer::PhysicalResourceBlock</a>*
<a name="l00237"></a>00237 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a9318f84c74da064521fedc7c266ff51f">PhysicalLayer::</a>
<a name="l00238"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a9318f84c74da064521fedc7c266ff51f">00238</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a9318f84c74da064521fedc7c266ff51f">PhysicalLayer::getPRB</a>( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, <span class="keyword">const</span> <span class="keywordtype">int</span> prb )
<a name="l00239"></a>00239 {
<a name="l00240"></a>00240    <a class="code" href="class_physical_layer_1_1_slot.html">Slot</a>* s = subframe_-&gt;getSlot( slot );
<a name="l00241"></a>00241    <a class="code" href="class_physical_layer_1_1_physical_resource_block.html">PhysicalResourceBlock</a>* p = s-&gt;<a class="code" href="class_physical_layer_1_1_slot.html#a6de1b8a154c2eb9dd0fa95f660afd499">getPRB</a>( prb );
<a name="l00242"></a>00242    
<a name="l00243"></a>00243    <span class="keywordflow">return</span> p;
<a name="l00244"></a>00244 };
<a name="l00245"></a>00245 
<a name="l00246"></a>00246 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00247"></a>00247 
<a name="l00248"></a>00248 <span class="keyword">inline</span>
<a name="l00249"></a>00249 <span class="keywordtype">void</span>
<a name="l00250"></a>00250 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a2f15953ff80751357d12a1facbdf53ab">PhysicalLayer::</a>
<a name="l00251"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a2f15953ff80751357d12a1facbdf53ab">00251</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a2f15953ff80751357d12a1facbdf53ab">PhysicalLayer::setUser</a>( <span class="keywordtype">int</span> slot, <span class="keywordtype">int</span> prb, <span class="keywordtype">int</span> userId )
<a name="l00252"></a>00252 {
<a name="l00253"></a>00253    <a class="code" href="class_physical_layer_1_1_slot.html">Slot</a>* s = subframe_-&gt;getSlot( slot );
<a name="l00254"></a>00254    <a class="code" href="class_physical_layer_1_1_physical_resource_block.html">PhysicalResourceBlock</a>* p = s-&gt;<a class="code" href="class_physical_layer_1_1_slot.html#a6de1b8a154c2eb9dd0fa95f660afd499">getPRB</a>( prb );
<a name="l00255"></a>00255    p-&gt;<a class="code" href="class_physical_layer_1_1_physical_resource_block.html#aefbec5bf7f6ed485f8b314baf3e87913">setUser</a>( userId, 0 );
<a name="l00256"></a>00256 };
<a name="l00257"></a>00257 
<a name="l00258"></a>00258 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00259"></a>00259 
<a name="l00260"></a>00260 <span class="keyword">inline</span>
<a name="l00261"></a>00261 <span class="keywordtype">int</span>
<a name="l00262"></a>00262 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a254b8f29c8edb42ef3113434c11999b7">PhysicalLayer::</a>
<a name="l00263"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a254b8f29c8edb42ef3113434c11999b7">00263</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a254b8f29c8edb42ef3113434c11999b7">PhysicalLayer::getUserId</a>( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, <span class="keyword">const</span> <span class="keywordtype">int</span> prb )
<a name="l00264"></a>00264 {
<a name="l00265"></a>00265    <a class="code" href="class_physical_layer_1_1_slot.html">Slot</a>* s = subframe_-&gt;getSlot( slot );
<a name="l00266"></a>00266    <a class="code" href="class_physical_layer_1_1_physical_resource_block.html">PhysicalResourceBlock</a>* p = s-&gt;<a class="code" href="class_physical_layer_1_1_slot.html#a6de1b8a154c2eb9dd0fa95f660afd499">getPRB</a>( prb );
<a name="l00267"></a>00267    
<a name="l00268"></a>00268    <span class="keywordflow">return</span> p-&gt;<a class="code" href="class_physical_layer_1_1_physical_resource_block.html#a82c6f204cf4f2c6a391c2d3253e2d013">getUserId</a>();
<a name="l00269"></a>00269 };
<a name="l00270"></a>00270 
<a name="l00271"></a>00271 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00272"></a>00272 
<a name="l00273"></a>00273 <span class="keyword">inline</span>
<a name="l00274"></a>00274 <span class="keywordtype">double</span>
<a name="l00275"></a>00275 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a3de481f06d4459c60c91fa5d49c8b841">PhysicalLayer::</a>
<a name="l00276"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a3de481f06d4459c60c91fa5d49c8b841">00276</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a3de481f06d4459c60c91fa5d49c8b841">PhysicalLayer::getFrequency</a>( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, <span class="keyword">const</span> <span class="keywordtype">int</span> prb )
<a name="l00277"></a>00277 {
<a name="l00278"></a>00278    <a class="code" href="class_physical_layer_1_1_slot.html">Slot</a>* s = subframe_-&gt;getSlot( slot );
<a name="l00279"></a>00279    <a class="code" href="class_physical_layer_1_1_physical_resource_block.html">PhysicalResourceBlock</a>* p = s-&gt;<a class="code" href="class_physical_layer_1_1_slot.html#a6de1b8a154c2eb9dd0fa95f660afd499">getPRB</a>( prb );
<a name="l00280"></a>00280    
<a name="l00281"></a>00281    <span class="keywordflow">return</span> p-&gt;<a class="code" href="class_physical_layer_1_1_physical_resource_block.html#ac2c51bb9d52c2c912ffb10af38446f82">getFrequency</a>();
<a name="l00282"></a>00282 };
<a name="l00283"></a>00283 
<a name="l00284"></a>00284 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00285"></a>00285 
<a name="l00286"></a>00286 <span class="keyword">inline</span>
<a name="l00287"></a>00287 <span class="keywordtype">int</span>
<a name="l00288"></a>00288 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a038a0deaed6072a0af1a1b80439e7e51">PhysicalLayer::</a>
<a name="l00289"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a038a0deaed6072a0af1a1b80439e7e51">00289</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a038a0deaed6072a0af1a1b80439e7e51">PhysicalLayer::getRawBits</a>( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, <span class="keyword">const</span> <span class="keywordtype">int</span> prb )
<a name="l00290"></a>00290 {
<a name="l00291"></a>00291    <a class="code" href="class_physical_layer_1_1_slot.html">Slot</a>* s = subframe_-&gt;getSlot( slot );
<a name="l00292"></a>00292    <a class="code" href="class_physical_layer_1_1_physical_resource_block.html">PhysicalResourceBlock</a>* p = s-&gt;<a class="code" href="class_physical_layer_1_1_slot.html#a6de1b8a154c2eb9dd0fa95f660afd499">getPRB</a>( prb );
<a name="l00293"></a>00293    
<a name="l00294"></a>00294    <span class="keywordflow">return</span> p-&gt;<a class="code" href="class_physical_layer_1_1_physical_resource_block.html#a31291a4007d96c0840f951ac83c6b53b">getRawBits</a>();
<a name="l00295"></a>00295 };
<a name="l00296"></a>00296 
<a name="l00297"></a>00297 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00298"></a>00298 
<a name="l00299"></a>00299 <span class="keyword">inline</span>
<a name="l00300"></a>00300 <span class="keywordtype">double</span>
<a name="l00301"></a>00301 <a class="code" href="class_physical_layer_1_1_physical_layer.html#ad35562402a90021c7e0a86698e930007">PhysicalLayer::</a>
<a name="l00302"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#ad35562402a90021c7e0a86698e930007">00302</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#ad35562402a90021c7e0a86698e930007">PhysicalLayer::getEffectiveBits</a>( <span class="keyword">const</span> <span class="keywordtype">int</span> slot, <span class="keyword">const</span> <span class="keywordtype">int</span> prb )
<a name="l00303"></a>00303 {
<a name="l00304"></a>00304    <a class="code" href="class_physical_layer_1_1_slot.html">Slot</a>* s = subframe_-&gt;getSlot( slot );
<a name="l00305"></a>00305    <a class="code" href="class_physical_layer_1_1_physical_resource_block.html">PhysicalResourceBlock</a>* p = s-&gt;<a class="code" href="class_physical_layer_1_1_slot.html#a6de1b8a154c2eb9dd0fa95f660afd499">getPRB</a>( prb );
<a name="l00306"></a>00306    
<a name="l00307"></a>00307    <span class="keywordflow">return</span> p-&gt;<a class="code" href="class_physical_layer_1_1_physical_resource_block.html#ad3e9d3d8b4e66d1f8f69bc8ed8cdef9b">getEffectiveBits</a>();
<a name="l00308"></a>00308 };
<a name="l00309"></a>00309 
<a name="l00310"></a>00310 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00311"></a>00311 
<a name="l00312"></a>00312 <span class="keyword">inline</span>
<a name="l00313"></a>00313 <span class="keywordtype">void</span>
<a name="l00314"></a>00314 <a class="code" href="class_physical_layer_1_1_physical_layer.html#aec4bf3585d59be07e2907bd971001045">PhysicalLayer::</a>
<a name="l00315"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#aec4bf3585d59be07e2907bd971001045">00315</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#aec4bf3585d59be07e2907bd971001045">PhysicalLayer::clearUsers</a>()
<a name="l00316"></a>00316 {
<a name="l00317"></a>00317    <span class="keywordtype">int</span> ns = subframe_-&gt;getNumberSlots();
<a name="l00318"></a>00318    <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i = 0; i &lt; ns; ++i )
<a name="l00319"></a>00319    {
<a name="l00320"></a>00320       <a class="code" href="class_physical_layer_1_1_slot.html">Slot</a>* s = subframe_-&gt;getSlot( i );
<a name="l00321"></a>00321       <span class="keywordtype">int</span> nprbs = s-&gt;<a class="code" href="class_physical_layer_1_1_slot.html#a68c1b01cc8e8b46b42038e96f791bb87">getNumberPRBs</a>();
<a name="l00322"></a>00322       <span class="keywordflow">for</span>( <span class="keywordtype">int</span> j = 0; j &lt; nprbs; ++j )
<a name="l00323"></a>00323       {
<a name="l00324"></a>00324          <a class="code" href="class_physical_layer_1_1_physical_resource_block.html">PhysicalResourceBlock</a>* prb = s-&gt;<a class="code" href="class_physical_layer_1_1_slot.html#a6de1b8a154c2eb9dd0fa95f660afd499">getPRB</a>( j );
<a name="l00325"></a>00325          prb-&gt;<a class="code" href="class_physical_layer_1_1_physical_resource_block.html#a1c6628d1f18a8f394cfc732178e88508">clearUser</a>();
<a name="l00326"></a>00326       }
<a name="l00327"></a>00327    }
<a name="l00328"></a>00328 };
<a name="l00329"></a>00329 
<a name="l00330"></a>00330 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00331"></a>00331 
<a name="l00332"></a>00332 <span class="keyword">inline</span>
<a name="l00333"></a>00333 <span class="keywordtype">int</span>
<a name="l00334"></a>00334 <a class="code" href="class_physical_layer_1_1_physical_layer.html#af3fd3705645ff6dd9bc0083c1523a5ae">PhysicalLayer::</a>
<a name="l00335"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#af3fd3705645ff6dd9bc0083c1523a5ae">00335</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#af3fd3705645ff6dd9bc0083c1523a5ae">PhysicalLayer::getNumberFrequencies</a>()
<a name="l00336"></a>00336 {
<a name="l00337"></a>00337    <span class="keywordflow">return</span> frequencies_.size();
<a name="l00338"></a>00338 };
<a name="l00339"></a>00339 
<a name="l00340"></a>00340 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00341"></a>00341 
<a name="l00342"></a>00342 <span class="keyword">inline</span>
<a name="l00343"></a>00343 <span class="keywordtype">int</span>
<a name="l00344"></a>00344 <a class="code" href="class_physical_layer_1_1_physical_layer.html#ab3259e9fb128e6c956211774d62e1b35">PhysicalLayer::</a>
<a name="l00345"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#ab3259e9fb128e6c956211774d62e1b35">00345</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#ab3259e9fb128e6c956211774d62e1b35">PhysicalLayer::getNumberSCFrequencies</a>()
<a name="l00346"></a>00346 {
<a name="l00347"></a>00347    <span class="keywordflow">return</span> SCfrequencies_.size();
<a name="l00348"></a>00348 };
<a name="l00349"></a>00349 
<a name="l00350"></a>00350 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00351"></a>00351 
<a name="l00352"></a>00352 <span class="keyword">inline</span>
<a name="l00353"></a>00353 <span class="keywordtype">double</span>
<a name="l00354"></a>00354 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a3de481f06d4459c60c91fa5d49c8b841">PhysicalLayer::</a>
<a name="l00355"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a259f3a784f1dfd401754ae78d6fcc5fe">00355</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a3de481f06d4459c60c91fa5d49c8b841">PhysicalLayer::getFrequency</a>( <span class="keywordtype">int</span> index )
<a name="l00356"></a>00356 {
<a name="l00357"></a>00357    <span class="keywordtype">double</span> f = -1.0;
<a name="l00358"></a>00358    <span class="keywordflow">if</span>( index &lt; frequencies_.size() )
<a name="l00359"></a>00359    {
<a name="l00360"></a>00360       f = frequencies_( index );
<a name="l00361"></a>00361    }
<a name="l00362"></a>00362    <span class="keywordflow">else</span>
<a name="l00363"></a>00363    {
<a name="l00364"></a>00364       it_error(<span class="stringliteral">&quot;Physical Layer: index out of range.&quot;</span>);
<a name="l00365"></a>00365    }
<a name="l00366"></a>00366    
<a name="l00367"></a>00367    <span class="keywordflow">return</span> f;
<a name="l00368"></a>00368 };
<a name="l00369"></a>00369 
<a name="l00370"></a>00370 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00371"></a>00371 
<a name="l00372"></a>00372 <span class="keyword">inline</span>
<a name="l00373"></a>00373 <span class="keywordtype">double</span>
<a name="l00374"></a>00374 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a95622427e8557df72302a2b731e8f0db">PhysicalLayer::</a>
<a name="l00375"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a95622427e8557df72302a2b731e8f0db">00375</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a95622427e8557df72302a2b731e8f0db">PhysicalLayer::getSCFrequency</a>( <span class="keywordtype">int</span> index )
<a name="l00376"></a>00376 {
<a name="l00377"></a>00377    <span class="keywordtype">double</span> f = -1.0;
<a name="l00378"></a>00378    <span class="keywordflow">if</span>( index &lt; SCfrequencies_.size() )
<a name="l00379"></a>00379    {
<a name="l00380"></a>00380       f = SCfrequencies_( index );
<a name="l00381"></a>00381    }
<a name="l00382"></a>00382    <span class="keywordflow">else</span>
<a name="l00383"></a>00383    {
<a name="l00384"></a>00384       it_error(<span class="stringliteral">&quot;Physical Layer: index out of range.&quot;</span>);
<a name="l00385"></a>00385    }
<a name="l00386"></a>00386    
<a name="l00387"></a>00387    <span class="keywordflow">return</span> f;
<a name="l00388"></a>00388 };
<a name="l00389"></a>00389 
<a name="l00390"></a>00390 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00391"></a>00391 
<a name="l00392"></a>00392 <span class="keyword">inline</span>
<a name="l00393"></a>00393 vec
<a name="l00394"></a>00394 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a572030d68a8603799e344a73a1ff2d42">PhysicalLayer::</a>
<a name="l00395"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a572030d68a8603799e344a73a1ff2d42">00395</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a572030d68a8603799e344a73a1ff2d42">PhysicalLayer::getFrequencies</a>()
<a name="l00396"></a>00396 {
<a name="l00397"></a>00397    <span class="keywordflow">return</span> frequencies_;
<a name="l00398"></a>00398 };
<a name="l00399"></a>00399 
<a name="l00400"></a>00400 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00401"></a>00401 
<a name="l00402"></a>00402 <span class="keyword">inline</span>
<a name="l00403"></a>00403 vec
<a name="l00404"></a>00404 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a6bae9209b113ad6536c766d279c7504e">PhysicalLayer::</a>
<a name="l00405"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a6bae9209b113ad6536c766d279c7504e">00405</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a6bae9209b113ad6536c766d279c7504e">PhysicalLayer::getSCFrequencies</a>()
<a name="l00406"></a>00406 {
<a name="l00407"></a>00407    <span class="keywordflow">return</span> SCfrequencies_;
<a name="l00408"></a>00408 };
<a name="l00409"></a>00409 
<a name="l00410"></a>00410 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00411"></a>00411 
<a name="l00412"></a>00412 <span class="keyword">inline</span>
<a name="l00413"></a>00413 <a class="code" href="class_physical_layer_1_1_subframe.html">PhysicalLayer::Subframe</a>*
<a name="l00414"></a>00414 <a class="code" href="class_physical_layer_1_1_physical_layer.html#a838e276cf6041103e8c7c5490ab73daf">PhysicalLayer::</a>
<a name="l00415"></a><a class="code" href="class_physical_layer_1_1_physical_layer.html#a838e276cf6041103e8c7c5490ab73daf">00415</a> <a class="code" href="class_physical_layer_1_1_physical_layer.html#a838e276cf6041103e8c7c5490ab73daf">PhysicalLayer::getSubframe</a>()
<a name="l00416"></a>00416 {
<a name="l00417"></a>00417    <span class="keywordflow">return</span> subframe_;
<a name="l00418"></a>00418 };
<a name="l00419"></a>00419 
<a name="l00420"></a>00420 <span class="comment">// -----------------------------------------------------------------------------</span>
<a name="l00421"></a>00421 
<a name="l00422"></a>00422 <span class="preprocessor">#endif</span>
<a name="l00423"></a>00423 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 25 2012 22:25:34 for LTE-UNB by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
